#include "cpptest.h"
#include "stdio.h"

CPPTEST_CONTEXT("/UnitTestDemo/RevenueAccount-v0.5.cpp");
CPPTEST_TEST_SUITE_INCLUDED_TO("/UnitTestDemo/RevenueAccount-v0.5.cpp");

class CalculateRevenue_TestSuit : public CppTest_TestSuite
{
    public:
        CPPTEST_TEST_SUITE(CalculateRevenue_TestSuit);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_01);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_02);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_03);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_04);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_05);
        CPPTEST_TEST(UnitTestDemo_RevenueAccount_CalculateRevenue_06);
        CPPTEST_TEST_SUITE_END();
        
        void setUp();
        void tearDown();

        void UnitTestDemo_RevenueAccount_CalculateRevenue_01();
        void UnitTestDemo_RevenueAccount_CalculateRevenue_02();
        void UnitTestDemo_RevenueAccount_CalculateRevenue_03();
        void UnitTestDemo_RevenueAccount_CalculateRevenue_04();
        void UnitTestDemo_RevenueAccount_CalculateRevenue_05();
        void UnitTestDemo_RevenueAccount_CalculateRevenue_06();
};

CPPTEST_TEST_SUITE_REGISTRATION(CalculateRevenue_TestSuit);

void CalculateRevenue_TestSuit::setUp()
{
}

void CalculateRevenue_TestSuit::tearDown()
{
}

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_01 */
/* CPPTEST_TEST_CASE_CONTEXT double CalculateRevenue(double) */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_01()
{

    double amount  = 400.0;
    double _return  = ::CalculateRevenue(amount);
    printf("%lf\n",_return);
    CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(4.000000e+002, ( _return ));
    //CPPTEST_POST_CONDITION_FLOAT("double _return", ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_01 */

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_02 */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_02()
{
    double amount  = 1300.0;
    double _return  = ::CalculateRevenue(amount);
    printf("%lf\n",_return);
    CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(1.170000e+003, ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_02 */

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_03 */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_03()
{
    double amount  = 3300.0;
    double _return  = ::CalculateRevenue(amount);
    CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(2.640000e+003, ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_03 */

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_04 */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_04()
{
    double amount  = 8000.0;
    double _return  = ::CalculateRevenue(amount);
    CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(5.600000e+003, ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_04 */

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_05 */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_05()
{
	double amount  = 0.0;
	double _return  = ::CalculateRevenue(amount);
	CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(-1.000000e+000, ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_05 */

/* CPPTEST_TEST_CASE_BEGIN UnitTestDemo_RevenueAccount_CalculateRevenue_06 */
void CalculateRevenue_TestSuit::UnitTestDemo_RevenueAccount_CalculateRevenue_06()
{
	double amount  = -10.0;
	double _return  = ::CalculateRevenue(amount);
	CPPTEST_ASSERT_DOUBLES_FMT_EQUAL(-1.000000e+000, ( _return ));
}
/* CPPTEST_TEST_CASE_END UnitTestDemo_RevenueAccount_CalculateRevenue_06 */
